package com.wmyg.antifake.service;

import com.wmyg.antifake.entity.Record;
import org.springframework.data.domain.Page;

import java.util.Date;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-08
 */
public interface RecordService {

    Integer saveRecord(Record record);

    void produceCode(Integer recordId);

    Record getRecord(Integer recordId);

    String wxPayPre(Integer recordId, String clientIp);

    String aliPayPre(Integer recordId);

    void download(String excelName, String username);

    Page<Record> getRecordPage(String username, Integer index, String somethingLike, Date startTime, Date endTime, Integer state);

    void cancelRecord(Integer recordId);

}
